package com.cj.search.service;

import com.cj.common.dto.PageDTO;
import com.cj.search.pojo.ItemDoc;
import com.cj.search.pojo.RequestParams;

import java.util.List;
import java.util.Map;

public interface ISearchService {
    List<String> getSuggestion(String prefix);

    Map<String,List<String>> filter(RequestParams requestParams);

    PageDTO<ItemDoc> list(RequestParams requestParams);

    void insertById(Long id);

    void deleteById(Long id);
}
